bitkeeper revision 1.1159.1.332 (41874e954CLIDA2J3phVFD2RnzVTpA)
authorkaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk>
Tue, 2 Nov 2004 09:08:37 +0000 (09:08 +0000)
committerkaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk>
Tue, 2 Nov 2004 09:08:37 +0000 (09:08 +0000)
Clean up public XenLinux header files. Now accessible from userspace as
#include <xen/linux...>
Got rid of the linux-xen-sparse symlink as it's no longer needed.

22 files changed:
.rootkeys
BitKeeper/etc/ignore
Makefile
linux-2.4.27-xen-sparse/mkbuildtree
linux-2.6.9-xen-sparse/arch/xen/Makefile
linux-2.6.9-xen-sparse/arch/xen/kernel/reboot.c
linux-2.6.9-xen-sparse/drivers/xen/privcmd/privcmd.c
linux-2.6.9-xen-sparse/include/asm-xen/linux-public/privcmd.h [new file with mode: 0644]
linux-2.6.9-xen-sparse/include/asm-xen/linux-public/suspend.h [new file with mode: 0644]
linux-2.6.9-xen-sparse/include/asm-xen/proc_cmd.h [deleted file]
linux-2.6.9-xen-sparse/include/asm-xen/suspend.h [deleted file]
tools/Make.defs
tools/libxc/Makefile
tools/libxc/xc.h
tools/libxc/xc_linux_restore.c
tools/libxc/xc_linux_save.c
tools/libxc/xc_private.h
tools/misc/Makefile
tools/python/setup.py
tools/python/xen/lowlevel/xu/xu.c
tools/xentrace/Makefile
tools/xfrd/Makefile

index cc0e349319e0a0f3c68a2edbf05d12650b58347b..09094b10b5ec5b59fbfc9e927abfe3311e745f79 100644 (file)
--- a/.rootkeys
+++ b/.rootkeys
 40f5623b3Eqs8pAc5WpPX8_jTzV2qw linux-2.6.9-xen-sparse/include/asm-xen/evtchn.h
 412dfaeazclyNDM0cpnp60Yo4xulpQ linux-2.6.9-xen-sparse/include/asm-xen/gnttab.h
 40f5623aGPlsm0u1LTO-NVZ6AGzNRQ linux-2.6.9-xen-sparse/include/asm-xen/hypervisor.h
+3f108af1ylCIm82H052FVTfXACBHrw linux-2.6.9-xen-sparse/include/asm-xen/linux-public/privcmd.h
+3fa8e3f0kBLeE4To2vpdi3cpJbIkbQ linux-2.6.9-xen-sparse/include/asm-xen/linux-public/suspend.h
 40f5623cndVUFlkxpf7Lfx7xu8madQ linux-2.6.9-xen-sparse/include/asm-xen/multicall.h
-3f108af1ylCIm82H052FVTfXACBHrw linux-2.6.9-xen-sparse/include/asm-xen/proc_cmd.h
 4122466356eIBnC9ot44WSVVIFyhQA linux-2.6.9-xen-sparse/include/asm-xen/queues.h
-3fa8e3f0kBLeE4To2vpdi3cpJbIkbQ linux-2.6.9-xen-sparse/include/asm-xen/suspend.h
 3f689063BoW-HWV3auUJ-OqXfcGArw linux-2.6.9-xen-sparse/include/asm-xen/xen_proc.h
 4124d8c4aocX7A-jIbuGraWN84pxGQ linux-2.6.9-xen-sparse/include/linux/bio.h
 4124f66fp5QwbDHEfoUIa7pqO5Xhag linux-2.6.9-xen-sparse/include/linux/page-flags.h
index d8bc1ae2f2acf9d1c074a2a1296b61e2c90d8052..59a047ed9a3536a0a6a4d5ef343b1d47b75cfbcc 100644 (file)
@@ -10,7 +10,7 @@
 BitKeeper/*/*
 PENDING/*
 TAGS
-Twisted-1.3.0
+Twisted-1.3.0/*
 Twisted-1.3.0.tar.gz
 docs/*.aux
 docs/*.dvi
@@ -20,49 +20,21 @@ docs/*.ps
 docs/*.toc
 docs/figs/xenserver.eps
 docs/html/*
-docs/interface/WARNINGS
-docs/interface/images.pl
-docs/interface/images.tex
-docs/interface/img1.png
-docs/interface/index.html
-docs/interface/interface.css
-docs/interface/interface.html
-docs/interface/labels.pl
-docs/user/WARNINGS
-docs/user/images.pl
-docs/user/images.tex
-docs/user/img1.png
-docs/user/img2.png
-docs/user/img3.png
-docs/user/index.html
-docs/user/internals.pl
-docs/user/labels.pl
-docs/user/user.css
-docs/user/user.html
-docs/xend/WARNINGS
-docs/xend/images.pl
-docs/xend/images.tex
-docs/xend/img1.png
-docs/xend/index.html
-docs/xend/internals.pl
-docs/xend/labels.pl
-docs/xend/xend.css
-docs/xend/xend.html
+docs/ps/*
+docs/pdf/*
 extras/mini-os/h/hypervisor-ifs
-install
 install/*
 linux-*-xen0/*
 linux-*-xenU/*
-linux-xen-sparse
-netbsd-*-tools
-netbsd-*-xen0
-netbsd-*-xenU
+netbsd-*-tools/*
+netbsd-*-xen0/*
+netbsd-*-xenU/*
 patches/*
 pristine-*
 tools/*/build/lib*/*.py
 tools/balloon/balloon
 tools/check/.*
-tools/libxc/xen
+tools/libxc/xen/*
 tools/misc/miniterm/miniterm
 tools/misc/xen_cpuperf
 tools/web-shutdown.tap
index 3147e518d8a54fefd4aa1a8ccdcedcdd51683bc6..18682e6ea1bebe3137de1353b6b3e1cfa81c482b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ SOURCEFORGE_MIRROR := http://heanet.dl.sourceforge.net/sourceforge
 .PHONY: docs delete-symlinks clean
 
 # a not partcularly useful but safe default target
-all: make-symlinks
+all:
        $(MAKE) prefix=$(INSTALL_DIR) dist=yes -C xen install
        $(MAKE) prefix=$(INSTALL_DIR) dist=yes -C tools install
 
@@ -192,7 +192,7 @@ netbsd:
        $(MAKE) mk-netbsd-trees
        $(MAKE) netbsd-xenU
 
-clean: delete-symlinks
+clean:
        $(MAKE) -C xen clean
        $(MAKE) -C tools clean
        $(MAKE) -C docs clean
@@ -201,13 +201,6 @@ clean: delete-symlinks
 mrproper: clean
        rm -rf install/* patches $(LINUX_TREES) linux-$(LINUX_VER).tar.*
 
-make-symlinks: delete-symlinks
-       ln -sf linux-$(LINUX26_VER)-xen-sparse linux-xen-sparse
-
-delete-symlinks:
-       $(RM) linux-xen-sparse
-
-# handy target to install twisted (use rpm or apt-get in preference)
 install-twisted:
        wget http://www.twistedmatrix.com/products/get-current.epy
        tar -zxf Twisted-*.tar.gz
index ff5e789ccfaa495226161280b1b537c336530836..382d90588bbb698e0ad6d8bf7ef7a9ff76a74dcb 100755 (executable)
@@ -209,10 +209,12 @@ ln -sf ../../${LINUX_26}/include/asm-xen/evtchn.h
 ln -sf ../../${LINUX_26}/include/asm-xen/gnttab.h
 ln -sf ../../${LINUX_26}/include/asm-xen/hypervisor.h
 ln -sf ../../${LINUX_26}/include/asm-xen/multicall.h
-ln -sf ../../${LINUX_26}/include/asm-xen/proc_cmd.h
-ln -sf ../../${LINUX_26}/include/asm-xen/suspend.h
 ln -sf ../../${LINUX_26}/include/asm-xen/xen_proc.h
 
+mkdir -p linux-public && cd linux-public
+ln -sf ../../../${LINUX_26}/include/asm-xen/linux-public/privcmd.h
+ln -sf ../../../${LINUX_26}/include/asm-xen/linux-public/suspend.h
+
 cd ${AD}/arch/xen/kernel
 ln -sf ../../i386/kernel/i387.c
 ln -sf ../../i386/kernel/init_task.c
index a0d11b2e228edea0d93f457c15e0b2c3c8647a9e..add0e416b90de3204bf6f5a85c93eb4f134ba627 100644 (file)
@@ -52,7 +52,8 @@ install: vmlinuz
        install -m0644 vmlinux $(INSTALL_PATH)/boot/vmlinux-syms-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
        install -m0664 .config $(INSTALL_PATH)/boot/config-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
        install -m0664 System.map $(INSTALL_PATH)/boot/System.map-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
-
+       mkdir -p $(INSTALL_PATH)/usr/include/xen/linux
+       install -m0644 include/asm-xen/linux-public/*.h $(INSTALL_PATH)/usr/include/xen/linux
 dist:
        $(MAKE) INSTALL_PATH=../install install
 
index 2e8192962486257b6193935e0883e673fe841a18..bf6e00bd313fbb76c32767e00c91640c58bfef28 100644 (file)
@@ -13,7 +13,7 @@ static int errno;
 #include <asm-xen/ctrl_if.h>
 #include <asm-xen/hypervisor.h>
 #include <asm-xen/xen-public/dom0_ops.h>
-#include <asm-xen/suspend.h>
+#include <asm-xen/linux-public/suspend.h>
 #include <asm-xen/queues.h>
 
 void machine_restart(char * __unused)
index 4a3d26d61b74d51ad65fda9e959a38abdfd232d2..4316d8e2f97ee1cd5228f15f2b383ed5c241a8c9 100644 (file)
@@ -1,5 +1,5 @@
 /******************************************************************************
- * core.c
+ * privcmd.c
  * 
  * Interface to privileged domain-0 commands.
  * 
@@ -25,7 +25,7 @@
 #include <asm/pgtable.h>
 #include <asm/uaccess.h>
 #include <asm/tlb.h>
-#include <asm-xen/proc_cmd.h>
+#include <asm-xen/linux-public/privcmd.h>
 #include <asm-xen/xen-public/dom0_ops.h>
 #include <asm-xen/xen_proc.h>
 
diff --git a/linux-2.6.9-xen-sparse/include/asm-xen/linux-public/privcmd.h b/linux-2.6.9-xen-sparse/include/asm-xen/linux-public/privcmd.h
new file mode 100644 (file)
index 0000000..9142c6b
--- /dev/null
@@ -0,0 +1,88 @@
+/******************************************************************************
+ * privcmd.h
+ * 
+ * Interface to /proc/xen/privcmd.
+ * 
+ * Copyright (c) 2003-2004, K A Fraser
+ * 
+ * This file may be distributed separately from the Linux kernel, or
+ * incorporated into other software packages, subject to the following license:
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this source file (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use, copy, modify,
+ * merge, publish, distribute, sublicense, and/or sell copies of the Software,
+ * and to permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#ifndef __PRIVCMD_H__
+#define __PRIVCMD_H__
+
+typedef struct privcmd_hypercall
+{
+    unsigned long op;
+    unsigned long arg[5];
+} privcmd_hypercall_t;
+
+typedef struct privcmd_mmap_entry {
+    unsigned long va;
+    unsigned long mfn;
+    unsigned long npages;
+} privcmd_mmap_entry_t; 
+
+typedef struct privcmd_mmap {
+    int num;
+    domid_t dom; /* target domain */
+    privcmd_mmap_entry_t *entry;
+} privcmd_mmap_t; 
+
+typedef struct privcmd_mmapbatch {
+    int num;     /* number of pages to populate */
+    domid_t dom; /* target domain */
+    unsigned long addr;  /* virtual address */
+    unsigned long *arr; /* array of mfns - top nibble set on err */
+} privcmd_mmapbatch_t; 
+
+typedef struct privcmd_blkmsg
+{
+    unsigned long op;
+    void         *buf;
+    int           buf_size;
+} privcmd_blkmsg_t;
+
+/*
+ * @cmd: IOCTL_PRIVCMD_HYPERCALL
+ * @arg: &privcmd_hypercall_t
+ * Return: Value returned from execution of the specified hypercall.
+ */
+#define IOCTL_PRIVCMD_HYPERCALL         \
+    _IOC(_IOC_NONE, 'P', 0, sizeof(privcmd_hypercall_t))
+
+/*
+ * @cmd: IOCTL_PRIVCMD_INITDOMAIN_EVTCHN
+ * @arg: n/a
+ * Return: Port associated with domain-controller end of control event channel
+ *         for the initial domain.
+ */
+#define IOCTL_PRIVCMD_INITDOMAIN_EVTCHN \
+    _IOC(_IOC_NONE, 'P', 1, 0)
+#define IOCTL_PRIVCMD_MMAP             \
+    _IOC(_IOC_NONE, 'P', 2, sizeof(privcmd_mmap_t))
+#define IOCTL_PRIVCMD_MMAPBATCH             \
+    _IOC(_IOC_NONE, 'P', 3, sizeof(privcmd_mmapbatch_t))
+#define IOCTL_PRIVCMD_GET_MACH2PHYS_START_MFN \
+    _IOC(_IOC_READ, 'P', 4, sizeof(unsigned long))
+
+#endif /* __PRIVCMD_H__ */
diff --git a/linux-2.6.9-xen-sparse/include/asm-xen/linux-public/suspend.h b/linux-2.6.9-xen-sparse/include/asm-xen/linux-public/suspend.h
new file mode 100644 (file)
index 0000000..f05e1b2
--- /dev/null
@@ -0,0 +1,43 @@
+/******************************************************************************
+ * suspend.h
+ * 
+ * Copyright (c) 2003-2004, K A Fraser
+ * 
+ * This file may be distributed separately from the Linux kernel, or
+ * incorporated into other software packages, subject to the following license:
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this source file (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use, copy, modify,
+ * merge, publish, distribute, sublicense, and/or sell copies of the Software,
+ * and to permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#ifndef __ASM_XEN_SUSPEND_H__
+#define __ASM_XEN_SUSPEND_H__
+
+typedef struct suspend_record_st {
+    /* To be filled in before resume. */
+    start_info_t resume_info;
+    /*
+     * The number of a machine frame containing, in sequence, the number of
+     * each machine frame that contains PFN -> MFN translation table data.
+     */
+    unsigned long pfn_to_mfn_frame_list;
+    /* Number of entries in the PFN -> MFN translation table. */
+    unsigned long nr_pfns;
+} suspend_record_t;
+
+#endif /* __ASM_XEN_SUSPEND_H__ */
diff --git a/linux-2.6.9-xen-sparse/include/asm-xen/proc_cmd.h b/linux-2.6.9-xen-sparse/include/asm-xen/proc_cmd.h
deleted file mode 100644 (file)
index 4292427..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-/******************************************************************************
- * proc_cmd.h
- * 
- * Interface to /proc/cmd and /proc/xen/privcmd.
- */
-
-#ifndef __PROC_CMD_H__
-#define __PROC_CMD_H__
-
-typedef struct privcmd_hypercall
-{
-    unsigned long op;
-    unsigned long arg[5];
-} privcmd_hypercall_t;
-
-typedef struct privcmd_mmap_entry {
-    unsigned long va;
-    unsigned long mfn;
-    unsigned long npages;
-} privcmd_mmap_entry_t; 
-
-typedef struct privcmd_mmap {
-    int num;
-    domid_t dom; /* target domain */
-    privcmd_mmap_entry_t *entry;
-} privcmd_mmap_t; 
-
-typedef struct privcmd_mmapbatch {
-    int num;     // number of pages to populate
-    domid_t dom; // target domain 
-    unsigned long addr;  // virtual address
-    unsigned long *arr; // array of mfns - top nibble set on err
-} privcmd_mmapbatch_t; 
-
-typedef struct privcmd_blkmsg
-{
-    unsigned long op;
-    void         *buf;
-    int           buf_size;
-} privcmd_blkmsg_t;
-
-/*
- * @cmd: IOCTL_PRIVCMD_HYPERCALL
- * @arg: &privcmd_hypercall_t
- * Return: Value returned from execution of the specified hypercall.
- */
-#define IOCTL_PRIVCMD_HYPERCALL         \
-    _IOC(_IOC_NONE, 'P', 0, sizeof(privcmd_hypercall_t))
-
-/*
- * @cmd: IOCTL_PRIVCMD_INITDOMAIN_EVTCHN
- * @arg: n/a
- * Return: Port associated with domain-controller end of control event channel
- *         for the initial domain.
- */
-#define IOCTL_PRIVCMD_INITDOMAIN_EVTCHN \
-    _IOC(_IOC_NONE, 'P', 1, 0)
-#define IOCTL_PRIVCMD_MMAP             \
-    _IOC(_IOC_NONE, 'P', 2, sizeof(privcmd_mmap_t))
-#define IOCTL_PRIVCMD_MMAPBATCH             \
-    _IOC(_IOC_NONE, 'P', 3, sizeof(privcmd_mmapbatch_t))
-#define IOCTL_PRIVCMD_GET_MACH2PHYS_START_MFN \
-    _IOC(_IOC_READ, 'P', 4, sizeof(unsigned long))
-
-#endif /* __PROC_CMD_H__ */
diff --git a/linux-2.6.9-xen-sparse/include/asm-xen/suspend.h b/linux-2.6.9-xen-sparse/include/asm-xen/suspend.h
deleted file mode 100644 (file)
index f05e1b2..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/******************************************************************************
- * suspend.h
- * 
- * Copyright (c) 2003-2004, K A Fraser
- * 
- * This file may be distributed separately from the Linux kernel, or
- * incorporated into other software packages, subject to the following license:
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this source file (the "Software"), to deal in the Software without
- * restriction, including without limitation the rights to use, copy, modify,
- * merge, publish, distribute, sublicense, and/or sell copies of the Software,
- * and to permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- * IN THE SOFTWARE.
- */
-
-#ifndef __ASM_XEN_SUSPEND_H__
-#define __ASM_XEN_SUSPEND_H__
-
-typedef struct suspend_record_st {
-    /* To be filled in before resume. */
-    start_info_t resume_info;
-    /*
-     * The number of a machine frame containing, in sequence, the number of
-     * each machine frame that contains PFN -> MFN translation table data.
-     */
-    unsigned long pfn_to_mfn_frame_list;
-    /* Number of entries in the PFN -> MFN translation table. */
-    unsigned long nr_pfns;
-} suspend_record_t;
-
-#endif /* __ASM_XEN_SUSPEND_H__ */
index 7f40cfef6a40423360da620668ccb6dae9efd989..132e4347cc9c28ddc2a5c38feee3955b638b2443 100644 (file)
@@ -1,6 +1,4 @@
 #  -*- mode: Makefile; -*-
-XEN_HYPERVISOR_IFS = $(XEN_ROOT)/xen/include/public
-XEN_LINUX_INCLUDE  = $(XEN_ROOT)/linux-xen-sparse/include
 XEN_XC             = $(XEN_ROOT)/tools/python/xen/lowlevel/xc
 XEN_LIBXC          = $(XEN_ROOT)/tools/libxc
 XEN_LIBXUTIL       = $(XEN_ROOT)/tools/libxutil
index 9a623bcc6b69b5c19786e179aaf9b36e74d1d95d..f1ccb3538db5d480c95ad05270e2caabb2593d74 100644 (file)
@@ -8,9 +8,6 @@ CC       = gcc
 XEN_ROOT = ../..
 include $(XEN_ROOT)/tools/Make.defs
 
-vpath %h       $(XEN_LINUX_INCLUDE)
-INCLUDES += -I $(XEN_LINUX_INCLUDE)
-
 vpath %c       $(XEN_LIBXUTIL)
 INCLUDES += -I $(XEN_LIBXUTIL)
 
@@ -32,7 +29,7 @@ CFLAGS   += -Wall
 CFLAGS   += -Werror
 CFLAGS   += -O3
 CFLAGS   += -fno-strict-aliasing
-CFLAGS   += $(INCLUDES)
+CFLAGS   += $(INCLUDES) -I.
 # Get gcc to generate the dependencies for us.
 CFLAGS   += -Wp,-MD,.$(@F).d
 DEPS     = .*.d
@@ -51,8 +48,11 @@ check-for-zlib:
        false; \
        fi
 
+LINUX_ROOT := $(wildcard $(XEN_ROOT)/linux-2.6.*-xen-sparse)
 mk-symlinks:
-       [ -e xen ] || ln -sf $(XEN_HYPERVISOR_IFS) xen
+       [ -e xen/linux ] || mkdir -p xen/linux
+       lndir -silent ../$(XEN_ROOT)/xen/include/public xen
+       lndir -silent ../../$(LINUX_ROOT)/include/asm-xen/linux-public xen/linux
 
 install: all
        mkdir -p $(prefix)/usr/lib
@@ -63,7 +63,7 @@ install: all
        install -m0644 xc.h $(prefix)/usr/include
 
 clean:
-       $(RM) *.a *.so *.o *.rpm $(LIB) *~ $(DEPS) xen
+       rm -rf *.a *.so *.o *.rpm $(LIB) *~ $(DEPS) xen
 
 rpm: all
        rm -rf staging
index ab3ace4ff1d21ef0eaf487e939aa2fd65022fee5..7778b71673e5fbbcac570295ed2c389e45fc9fd2 100644 (file)
@@ -18,11 +18,11 @@ typedef signed short       s16;
 typedef signed long        s32;
 typedef signed long long   s64;
 
-#include "xen/xen.h"
-#include "xen/dom0_ops.h"
-#include "xen/event_channel.h"
-#include "xen/sched_ctl.h"
-#include "xen/io/domain_controller.h"
+#include <xen/xen.h>
+#include <xen/dom0_ops.h>
+#include <xen/event_channel.h>
+#include <xen/sched_ctl.h>
+#include <xen/io/domain_controller.h>
 
 /* Obtain or relinquish a handle on the 'xc' library. */
 int xc_interface_open(void);
index 2b3df66dd553bd4ccfeffcb2587f5b390c1ff347..1db39317de912f4187311ac6f23497720c8025be 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #include "xc_private.h"
-#include <asm-xen/suspend.h>
+#include <xen/linux/suspend.h>
 
 #define MAX_BATCH_SIZE 1024
 
index e9f4259494f4b47f835e2bf8a9a3b5540ef3e5e5..9ff85a241bb211e90e1c3fd8fb3298b1a6eab4ef 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <sys/time.h>
 #include "xc_private.h"
-#include <asm-xen/suspend.h>
+#include <xen/linux/suspend.h>
 #include <time.h>
 
 #define BATCH_SIZE 1024   /* 1024 pages (4MB) at a time */
index 8fd4559886b089b1c0334d872adb213a400c0293..c05ae491d9951950eefbd062e01b9873a3012f87 100644 (file)
@@ -16,8 +16,7 @@
 
 #include "xc.h"
 
-#include <asm-xen/proc_cmd.h>
-
+#include <xen/linux/privcmd.h>
 
 #define _PAGE_PRESENT   0x001
 #define _PAGE_RW        0x002
index 0dc13c4b50d8e05c043d905de9fe229c5b89fce3..760348b0b4c83769cd42248736a1023b180bbb37 100644 (file)
@@ -5,7 +5,6 @@ include $(XEN_ROOT)/tools/Make.defs
 CC         = gcc
 CFLAGS     = -Wall -O3 
 
-INCLUDES += -I $(XEN_LINUX_INCLUDE)
 INCLUDES += -I $(XEN_XC)
 INCLUDES += -I $(XEN_LIBXC)
 INCLUDES += -I $(XEN_LIBXUTIL)
index ec7efc0b63ae9eb1c6995245293c344ead295e3d..99069d0be497e14c29dbba406368ca78e0d31bf2 100644 (file)
@@ -7,8 +7,7 @@ XEN_ROOT = "../.."
 extra_compile_args  = [ "-fno-strict-aliasing", "-Wall", "-Werror" ]
 
 
-include_dirs = [ XEN_ROOT + "/linux-xen-sparse/include",
-                 XEN_ROOT + "/tools/python/xen/lowlevel/xu",
+include_dirs = [ XEN_ROOT + "/tools/python/xen/lowlevel/xu",
                  XEN_ROOT + "/tools/libxc",
                  XEN_ROOT + "/tools/libxutil",
                  ]
index 51437005385655ef10d680f58aa0efe306ceea55..29213e93ff21280d67e4ef33b76a3f8434f56fa1 100644 (file)
@@ -25,8 +25,7 @@
 
 #include <xen/xen.h>
 #include <xen/io/domain_controller.h>
-
-#include <asm-xen/proc_cmd.h>
+#include <xen/linux/privcmd.h>
 
 #define XENPKG "xen.lowlevel.xu"
 
index 7759b90f863df216af7c2acef45ab1d1f39ef124..1b13bd9d8be52ec36bf4c2ebf1ef77c1aaa1e980 100644 (file)
@@ -5,7 +5,6 @@ include $(XEN_ROOT)/tools/Make.defs
 CC       = gcc
 CFLAGS   = -Wall -Werror -O3
 
-CFLAGS  += -I $(XEN_LINUX_INCLUDE)
 CFLAGS  += -I $(XEN_XC)
 CFLAGS  += -I $(XEN_LIBXC)
 CFLAGS  += -I $(XEN_LIBXUTIL)
index 9b8d9bc108f2ce54fb91ef98f69ecf260c4a6d45..c1478ce690cc283634f2a678e1780f403b960fcb 100644 (file)
@@ -9,9 +9,6 @@ include $(XEN_ROOT)/tools/Make.defs
 
 XFRD_INSTALL_DIR = /usr/sbin
 
-vpath %h       $(XEN_LINUX_INCLUDE)
-INCLUDES += -I $(XEN_LINUX_INCLUDE)
-
 vpath %.h      $(XEN_LIBXC)
 INCLUDES += -I $(XEN_LIBXC)